var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (function($){ "use strict"; $(document).ready(function(){ /* Scroll to top */ mistercar_scrollUp(); function mistercar_scrollUp(options) { var defaults = { scrollName: 'scrollUp', topDistance: 600, topSpeed: 800, animation: 'fade', animationInSpeed: 200, animationOutSpeed: 200, scrollText: '', scrollImg: false, activeOverlay: false }; var o = $.extend({}, defaults, options), scrollId = '#' + o.scrollName; $('', { id: o.scrollName, href: '#top', title: o.scrollText }).appendTo('body'); if (!o.scrollImg) { $(scrollId).html(o.scrollText); } $(scrollId).css({'display': 'none', 'position': 'fixed', 'z-index': '2147483647'}); if (o.activeOverlay) { $("body").append("
"); $(scrollId + "-active").css({'position': 'absolute', 'top': o.topDistance + 'px', 'width': '100%', 'border-top': '1px dotted ' + o.activeOverlay, 'z-index': '2147483647'}); } $(window).scroll(function () { switch (o.animation) { case "fade": $(($(window).scrollTop() > o.topDistance) ? $(scrollId).fadeIn(o.animationInSpeed) : $(scrollId).fadeOut(o.animationOutSpeed)); break; case "slide": $(($(window).scrollTop() > o.topDistance) ? $(scrollId).slideDown(o.animationInSpeed) : $(scrollId).slideUp(o.animationOutSpeed)); break; default: $(($(window).scrollTop() > o.topDistance) ? $(scrollId).show(0) : $(scrollId).hide(0)); } }); $(scrollId).on( "click", function (event) { $('html, body').animate({scrollTop: 0}, o.topSpeed); event.preventDefault(); }); } /* Fix empty menu in test_uni_data */ if( $( '.widget_nav_menu ul li' ).length > 0 ){ $( '.widget_nav_menu ul li a:empty' ).parent().css('display','none'); } /* Select 2 */ $('select').select2({ width: '100%' }); /* Popup Image - PrettyPhoto */ if( $("a[data-gal^='prettyPhoto']").length > 0 ){ $("a[data-gal^='prettyPhoto']").prettyPhoto({hook: 'data-gal', theme: 'facebook',slideshow:5000, autoplay_slideshow:true}); } $( '.ovatheme_header_default li.menu-item button.dropdown-toggle').off('click').on( 'click', function() { $(this).parent().toggleClass('active_sub'); }); // feather icon feather.replace(); //add padding widget li list product $( ".woocommerce .ova-shop-wrap .woo-sidebar .widget_products ul.product_list_widget li" ).each(function( index ) { var that = $(this); if( that.find('.woocommerce-Price-amount').length == 0 ){ that.css('padding-bottom', '67px'); } var title = that.find('.product-title').text(); var result = title.substr(0, 22); that.find('.product-title').text(result); }); if($('#woo-sidebar').length <=0 ){ $('.ova-shop-wrap .content-area').css({'flex':'0 0 100%', 'padding-left':'0px'}); } /* Popup Image - PrettyPhoto */ if($().prettyPhoto) { if( $("a[data-gal^='prettyPhoto']").length > 0 ){ $("a[data-gal^='prettyPhoto']").prettyPhoto({hook: 'data-gal', theme: 'facebook',slideshow:5000, autoplay_slideshow:true}); } } $('.mistercar-login-register-woo li a').on('click', function(){ var type = $(this).data('type'); $('.mistercar-login-register-woo li').removeClass('active'); $(this).parent('li').addClass('active'); if( type === 'login' ){ $('.woocommerce #customer_login .woocommerce-form.woocommerce-form-login').css('display', 'block'); $('.woocommerce #customer_login .woocommerce-form.woocommerce-form-register').css('display', 'none'); } else if( type === 'register' ){ $('.woocommerce #customer_login .woocommerce-form.woocommerce-form-register').css('display', 'block'); $('.woocommerce #customer_login .woocommerce-form.woocommerce-form-login').css('display', 'none'); } }); if( $('.ovaev-event-element.version_1').length > 0 ){ var width_screen = window.screen.availWidth; if( width_screen > 767 ){ var height_event_element = $('.ovaev-event-element.version_1').innerHeight(); if( $('.blog-grid article.post-wrap .wrap-article').length > 0 ){ $('.blog-grid article.post-wrap .wrap-article').css('height', height_event_element + 'px' ) } } } $('.mansory').masonry({ // options... itemSelector: 'article.post-wrap', gutter: 30 }); $('article.post-wrap .post-media').each(function(){ if( $(this).find('img').length <= 0 ){ $(this).find('.ova-cat').css({'position':'relative','top':'unset', 'left':'unset'}); } }); if($('.egovt_stretch_column_left').length != null ){ mistercar_calculate_width( '.egovt_stretch_column_left' ); } if($('.egovt_stretch_column_right').length != null ){ mistercar_calculate_width( '.egovt_stretch_column_right' ); } }); // Calculate width with special class function mistercar_calculate_width( directly ){ if( $(directly).length ){ var width_win = $(window).outerWidth(); if( directly == '.egovt_stretch_column_left' ){ var col_offset = $(directly).offset(); var myLeftLineWidth = col_offset.left; var width_left = $(directly).outerWidth() + myLeftLineWidth ; $('.egovt_stretch_column_left .elementor-column-wrap').css('width', width_left); $('.egovt_stretch_column_left .elementor-column-wrap').css('margin-left', -myLeftLineWidth); } if( directly == '.egovt_stretch_column_right' ){ var $whatever = $('.egovt_stretch_column_right'); var ending_right = ($(window).width() - ($whatever.offset().left + $whatever.outerWidth())); var myrightLineWidth = window.innerWidth - ending_right; var width_right = $(directly).outerWidth() + myrightLineWidth; $('.egovt_stretch_column_right .elementor-column-wrap').css('width', width_right); $('.egovt_stretch_column_right .elementor-column-wrap').css('margin-right', -ending_right); } } } $(window).resize(function () { if($('.egovt_stretch_column_left').length != null ){ mistercar_calculate_width('.egovt_stretch_column_left'); } if($('.egovt_stretch_column_right').length != null ){ mistercar_calculate_width('.egovt_stretch_column_right'); } }); })(jQuery); } /* FILE ARCHIVED ON 22:27:06 Jul 23, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 18:54:57 Aug 01, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.468 captures_list: 0.631 exclusion.robots: 0.068 exclusion.robots.policy: 0.057 esindex: 0.011 cdx.remote: 18.63 LoadShardBlock: 260.965 (3) PetaboxLoader3.datanode: 403.588 (5) PetaboxLoader3.resolve: 80.584 (2) load_resource: 299.737 loaddict: 202.305 */